﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BuddHa.Wechat.Mini.Responses
{
    public class ResponseGetUserEncryptKey
    {
        [JsonPropertyName("errcode")]
        public int ErrCode { get; set; }

        [JsonPropertyName("errmsg")]
        public string? ErrMsg { get; set; }

        [JsonPropertyName("key_info_list")]
        public List<KeyInfoList> KeyInfoLists { get; set; }
    }

    public class KeyInfoList
    {
        [JsonPropertyName("encrypt_key")]
        public string? EncryptKey { get; set; }

        [JsonPropertyName("version")]
        public string? Version { get; set; }

        [JsonPropertyName("expire_in")]
        public string? ExpireIn { get; set; }

        [JsonPropertyName("iv")]
        public string? Iv { get; set; }

        [JsonPropertyName("create_time")]
        public long CreateTime { get; set; }
    }
}
